import React from 'react';
import MyContext from './MyContext';
const MyProvider = ({ list, addMsg, children }) => {
  console.log(list)
  return (
    <MyContext.Provider value={{ list, addMsg }}>
      {children}
    </MyContext.Provider>
  );
}

export default MyProvider;
